////
// Version 0.1 - doesn't really do anything, this is a stub for getting
// the environment up and running.  Created 2/18 by CW.
////

public class SemanticProcessor {

	public SemanticProcessor() { }

	////
	// Convenience method. The compiler wouldn't believe me when I told it
        // that elements 6 & 7 of the old output were int arrays.
	public CompiledMethod compileMethod(String selector, String code) {
		int[] bytecodes = new int[6];
		int[] litFrame = new int[4];

                CompiledMethod output = new CompiledMethod();
                
		output.size = 16;     //size
		output.classPointer = 0;      //ptr to class
		output.numArgs = 0;      //number of args
		output.numTemps = 0;      //number of temp vars
		output.numLiterals = 0;      //number of literals
		output.primitiveIndex = 0;      //primitive index

		output.literalFrame = litFrame;
		output.bytecodes = bytecodes;
		return output;
	}
}